$OpenBSD: patch-src_blocks_gifdbl_c,v 1.2 2015/03/28 17:48:53 sthen Exp $

support giflib 5.0+, from http://cvsweb.netbsd.org/bsdweb.cgi/pkgsrc/multimedia/ming/patches/

--- src/blocks/gifdbl.c.orig	Sun Oct 10 08:19:23 2010
+++ src/blocks/gifdbl.c	Sat Mar 28 17:48:30 2015
@@ -203,7 +203,7 @@ readGif(GifFileType *file, dblData result)
 	}
 
 	/* Done! */
-	DGifCloseFile(file);
+	DGifCloseFile(file, NULL);
 
 	result->data = malloc(outsize = (int)floor(size*1.01+12));
 
@@ -227,7 +227,7 @@ SWFDBLBitmapData newSWFDBLBitmapData_fromGifFile(const
 	SWFDBLBitmapData ret;
 	struct dbl_data gifdata;
 
-	if((file = DGifOpenFileName(fileName)) == NULL)
+	if((file = DGifOpenFileName(fileName, NULL)) == NULL)
 		return NULL;
 	if(!readGif(file, &gifdata))
 		return NULL;
@@ -246,7 +246,7 @@ SWFDBLBitmapData newSWFDBLBitmapData_fromGifInput(SWFI
 	SWFDBLBitmapData ret;
 	struct dbl_data gifdata;
 
-	if((file = DGifOpen(input, (InputFunc) gifReadFunc)) == NULL)
+	if((file = DGifOpen(input, (InputFunc) gifReadFunc, NULL)) == NULL)
 		return NULL;
 	if(!readGif(file, &gifdata))
 		return NULL;
